package com.esoon.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * CSR_LEAVE_MESSAGE
 * @author 
 */
@Data
public class CsrLeaveMessage implements Serializable {
    /**
     * PK
     */
    private Integer lmId;

    /**
     * 客户名称
     */
    private String lmName;

    /**
     * 客户号码
     */
    private String lmPhone;

    /**
     * 留言时间
     */
    private Date lmTime;

    /**
     * 留言节点
     */
    private String lmNode;

    /**
     * 留言文件
     */
    private String lmPathName;

    /**
     * 回呼状态
     */
    private String lmState;

    /**
     * 备注
     */
    private String lmMark;

    private Integer createId;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 部门编号
     */
    private Integer createDept;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateId;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 租户编号
     */
    private Integer tenantId;

    /**
     * 租户名称
     */
    private String tenantName;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CsrLeaveMessage other = (CsrLeaveMessage) that;
        return (this.getLmId() == null ? other.getLmId() == null : this.getLmId().equals(other.getLmId()))
            && (this.getLmName() == null ? other.getLmName() == null : this.getLmName().equals(other.getLmName()))
            && (this.getLmPhone() == null ? other.getLmPhone() == null : this.getLmPhone().equals(other.getLmPhone()))
            && (this.getLmTime() == null ? other.getLmTime() == null : this.getLmTime().equals(other.getLmTime()))
            && (this.getLmNode() == null ? other.getLmNode() == null : this.getLmNode().equals(other.getLmNode()))
            && (this.getLmPathName() == null ? other.getLmPathName() == null : this.getLmPathName().equals(other.getLmPathName()))
            && (this.getLmState() == null ? other.getLmState() == null : this.getLmState().equals(other.getLmState()))
            && (this.getLmMark() == null ? other.getLmMark() == null : this.getLmMark().equals(other.getLmMark()))
            && (this.getCreateId() == null ? other.getCreateId() == null : this.getCreateId().equals(other.getCreateId()))
            && (this.getCreater() == null ? other.getCreater() == null : this.getCreater().equals(other.getCreater()))
            && (this.getCreateDept() == null ? other.getCreateDept() == null : this.getCreateDept().equals(other.getCreateDept()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateId() == null ? other.getUpdateId() == null : this.getUpdateId().equals(other.getUpdateId()))
            && (this.getUpdater() == null ? other.getUpdater() == null : this.getUpdater().equals(other.getUpdater()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getTenantName() == null ? other.getTenantName() == null : this.getTenantName().equals(other.getTenantName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLmId() == null) ? 0 : getLmId().hashCode());
        result = prime * result + ((getLmName() == null) ? 0 : getLmName().hashCode());
        result = prime * result + ((getLmPhone() == null) ? 0 : getLmPhone().hashCode());
        result = prime * result + ((getLmTime() == null) ? 0 : getLmTime().hashCode());
        result = prime * result + ((getLmNode() == null) ? 0 : getLmNode().hashCode());
        result = prime * result + ((getLmPathName() == null) ? 0 : getLmPathName().hashCode());
        result = prime * result + ((getLmState() == null) ? 0 : getLmState().hashCode());
        result = prime * result + ((getLmMark() == null) ? 0 : getLmMark().hashCode());
        result = prime * result + ((getCreateId() == null) ? 0 : getCreateId().hashCode());
        result = prime * result + ((getCreater() == null) ? 0 : getCreater().hashCode());
        result = prime * result + ((getCreateDept() == null) ? 0 : getCreateDept().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateId() == null) ? 0 : getUpdateId().hashCode());
        result = prime * result + ((getUpdater() == null) ? 0 : getUpdater().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getTenantName() == null) ? 0 : getTenantName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", lmId=").append(lmId);
        sb.append(", lmName=").append(lmName);
        sb.append(", lmPhone=").append(lmPhone);
        sb.append(", lmTime=").append(lmTime);
        sb.append(", lmNode=").append(lmNode);
        sb.append(", lmPathName=").append(lmPathName);
        sb.append(", lmState=").append(lmState);
        sb.append(", lmMark=").append(lmMark);
        sb.append(", createId=").append(createId);
        sb.append(", creater=").append(creater);
        sb.append(", createDeptId=").append(createDept);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateId=").append(updateId);
        sb.append(", updater=").append(updater);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", tenantName=").append(tenantName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}